<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>铁路中学成绩管理系统</title>
    <link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon">
</head>
<body>
<div class="easyui-layout" data-options="fit:true">
    <form action="/addGrades" method="post" enctype="multipart/form-data">
        <label for="gradeinfo">年级信息导入</label>
        <input class="easyui-filebox" id="gradeinfo"  name="gradesFile" data-options="buttonText:'选择',prompt:'年级信息文件...'" style="width:100%">
        <input  class="easyui-linkbutton  l-btn-large" iconCls="" type="submit" value="导入系统"/>
    </form>
    <div><hr/></div>
    <form action="/addSemesters" method="post" enctype="multipart/form-data">
        <label for="semesterinfo">学期信息导入</label>
        <input class="easyui-filebox" id="semesterinfo"  name="semesterFile" data-options="buttonText:'选择',prompt:'学期信息文件...'" style="width:100%">
        <input  class="easyui-linkbutton  l-btn-large" iconCls="" type="submit" value="导入系统"/>
    </form>

    <div><hr/></div>
    <form action="/addStudents" method="post" enctype="multipart/form-data">
        <label for="semesterinfo">学生信息导入</label>
        <input class="easyui-filebox" id="studentinfo"  name="studentinfoFile" data-options="buttonText:'选择',prompt:'学生信息文件...'" style="width:100%">
        <input  class="easyui-linkbutton  l-btn-large" iconCls="" type="submit" value="导入系统"/>
    </form>
    <div><hr/></div>
    <form action="/addTeachers" method="post" enctype="multipart/form-data">
        <label for="semesterinfo">教师信息导入</label>
        <input class="easyui-filebox" id="teacherinfo"  name="teacherinfoFile" data-options="buttonText:'选择',prompt:'教师信息文件...'" style="width:100%">
        <input  class="easyui-linkbutton  l-btn-large" iconCls="" type="submit" value="导入系统"/>
    </form>



</div>


<script type="text/javascript" th:inline="none">
	/**
	* Name 打开修改窗口
	*/
	function openEdit(){
		$('#wu-form-2').form('clear');
		var item = $('#wu-datagrid-2').datagrid('getSelected');
		$.ajax({
			url:'',
			data:'',
			success:function(data){
				if(data){
					$('#wu-dialog-2').dialog('close');	
				}
				else{
					//绑定值
					$('#wu-form-2').form('load', data)
				}
			}	
		});
		$('#wu-dialog-2').dialog({
			closed: false,
			modal:true,
            title: "修改信息",
            buttons: [{
                text: '确定',
                iconCls: 'icon-ok',
                handler: edit
            }, {
                text: '取消',
                iconCls: 'icon-cancel',
                handler: function () {
                    $('#wu-dialog-2').dialog('close');                    
                }
            }]
        });
	}	

</script>
</body>